﻿using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Schism
{
    public class Font
    {
        public SpriteFont Fnt { get; set; }
        public string Location { get; set; }
        public string Name { get; set; }

        public Font(string name)
        {
            this.Name = name;
            this.Fnt = ObjectHolder.GameObject.Content.Load<SpriteFont>(string.Format(@"src\fonts\{0}", Name));
        }
    }
    public static class FontBank
    {
        private static Dictionary<string, Font> _FontBank;

        public static SpriteFont GetFnt(string name)
        {
            return _FontBank[name].Fnt;
        }
        public static string GetLoc(string name)
        {
            return _FontBank[name].Location;
        }

        static FontBank()
        {
            //TODO: Add Font Loading Here
            _FontBank = new Dictionary<string, Font>();

            _FontBank.Add("Arial16", new Font("Arial16"));
        }
    }
}
